import config from '@/utils/config'
import { generateRequest } from '@/utils/request'
const { apiUrlPrefix } = config

/** 护嘱事项列表 */
export const nursingItemListApi = generateRequest(`${apiUrlPrefix}/pcs/nursingItem/listByPage`)

/** 新增护嘱事项 */
export const createNursingItemApi = generateRequest(`${apiUrlPrefix}/pcs/nursingItem/insertNursingItem`)

/** 护嘱事项修改 */
export const updateNursingItemApi = generateRequest(`${apiUrlPrefix}/pcs/nursingItem/updateNursingItem`)

/** 护嘱事项删除 */
export const deleteNursingItemApi = generateRequest(`${apiUrlPrefix}/pcs/nursingItem/delNursingItem`)

/** 护嘱事项详情 */
export const getNursingItemDetailApi = generateRequest(`${apiUrlPrefix}/pcs/nursingItem/getNursingItemById`)

/** 护嘱事项分类 */
export const nursingTypeListApi = generateRequest(`${apiUrlPrefix}/pcs/nursingType/getNursingTypeList`)

/** 护嘱事项 - 启用-禁用 */
export const enableNursingItemApi = generateRequest(`${apiUrlPrefix}/pcs/nursingItem/changeStatus`)
